﻿using RTW.Entity.CustomAttributes;
using RTW.OA.Areas.Common.Servers;
using System;

namespace RTW.OA.Models
{
    public class official_document_receive
    {
        /// <summary>
        /// 接收人用户编号
        /// </summary>
        public string RECEIVER_USER_NO { get; set; }
        /// <summary>
        /// 接收人用户编号
        /// </summary>
        public string RECEIVER_NAME { get; set; }
        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime? RECEIVE_TIME { get; set; }
        /// <summary>
        /// 收文单位
        /// </summary>
        public string RECEIVE_UNIT { get; set; }
        /// <summary>
        /// 内容摘要
        /// </summary>
        public string REMARK { get; set; }
        /// <summary>
        /// 拟办意见
        /// </summary>
        public string COMMENT { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int STATUS { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CREATE_TIME { get; set; }
        /// <summary>
        /// 公文编号
        /// </summary>
        public int DOC_ID { get; set; }
        /// <summary>
        /// 登记编号
        /// </summary>
        public string REG_ID { get; set; }
        /// <summary>
        /// 接收编号
        /// </summary>
        [Id(CheckAutoId = true)]
        public int RECEIVE_ID { get; set; }

        [IgnoreColumn]
        public official_document official_document
        {
            get
            {
                DocumentServers documentServers = new DocumentServers();
                return documentServers.GetModelById(this.DOC_ID);
            }
        }
    }
}